package test.my.com.myapplicationtest.radar_view;

import android.app.Activity;
import android.os.Bundle;

import test.my.com.myapplicationtest.R;

/**
 * Author : cooper
 * Time :  2018/3/13 下午3:48
 * Description : 雷达图
 */

public class RadarViewActivity extends Activity {

    XRadarView xRadarView1;
    String[] titles = new String[]{"击杀","金钱","防御","魔法","物理","助攻","生存"};
    double[] percents = new double[]{1.0, 0.46,0.63,0.75,0.5,0.9,0.26};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.aty_radar_view_layout);

        xRadarView1 = (XRadarView) this.findViewById(R.id.radarView1);
        xRadarView1.setTitles(titles);
        xRadarView1.setPercents(percents);
    }
}
